package com.cyg.system.controller;

import javax.ws.rs.GET;
import javax.ws.rs.Path;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import com.cyg.system.model.User;
import com.cyg.system.service.IUserService;

@Controller
@Path("/user")
public class UserController {

	@Autowired
	private IUserService userService;
	
	@GET
	@Path("/saveUser")
	public void saveUser(){
		User user = new User();
		user.setUserId("test2");
		user.setUserName("huxiaoyuan2");
		user.setLoginName("huxiaoyuan3");
		user.setPassword("123456");
		user.setMobile("1122334");
		userService.saveUser(user);
	}
}
